<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./js/jquery-3.6.0.js"></script>
    
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        body {
            background-color: #CDCDCD;
        }

        .header {
            width: 100%;
            height: 50px;
            background-color: rgba(47, 47, 47, 0.98);
            text-align: center;

        }

        .section {
            width: 500px;
            margin: 0 auto;
        }

        .label {
            float: left;
            color: #e1e1e1;
            line-height: 50px;
            margin-left: 30%;
        }

        .addTodo {
            float: right;
            margin-top: 12px;
            margin-right: 30%;
            height: 25px;
            width: 350px;
            border-radius: 5px;
            border: none;
        }

        .todo-count {
            width: 20px;
            border-radius: 20px;
            text-align: center;
            background-color: #e6e6fa;
            font-size: 15px;
            float: right;
            margin-top: 8px;
        }
        .over-count{
            width: 20px;
            border-radius: 20px;
            text-align: center;
            background-color: #e6e6fa;
            font-size: 15px;
            float: right;
            
        }
        ol,
        ul {
            padding: 0;
            list-style: none;
        }

        li input {
            position: absolute;
            top: 4px;
            left: 10px;
            width: 22px;
            height: 22px;
            cursor: pointer;
        }

        li a {
            position: absolute;
            top: 2px;
            right: 5px;
            display: inline-block;
            width: 14px;
            height: 12px;
            border-radius: 14px;
            border: 6px double #FFF;
            background: #CCC;
            line-height: 14px;
            text-align: center;
            color: #FFF;
            font-weight: bold;
            font-size: 14px;
            cursor: pointer
        }

        li {
            height: 32px;
            line-height: 32px;
            background: #fff;
            position: relative;
            margin-bottom: 10px;
            margin-top: 10px;
            padding: 0 45px;
            border-radius: 3px;
            border-left: 5px solid #629A9C;
            box-shadow: 0 1px 2px rgb(0 0 0 / 7%);
        }
        .over-list li{
            opacity: 0.5;
        }
        .footer{
            height: 50px;
            margin-top: 50px;
            line-height: 50px;
            text-align: center;
            color: #666;
        }
        .clear-btn{
            cursor: pointer;
        }
    </style>
</head>

<body>
    <div class="header">
        
            <h2 class="label">ToDoList</h2><input type="text" name="title" required='required' placeholder="添加ToDo" class="addTodo">
        
    </div>
    <div class="section">
        <h2>正在进行<span class="todo-count">0</span></h2>
        <ol class="todo-list">
            
        </ol>
        <h2>已经完成<span class="over-count">0</span></h2>
        <ul class="over-list">
        </ul>
    </div>
    <div class="footer">Copyright&copy; 2014 todolist.cn <a class="clear-btn">clear</a></div>
    <script src="./js/todolist.js"></script>
</body>

</html>